package tg.app.rj.tslx;

import java.rmi.RemoteException;
import psdi.mbo.Mbo;
import psdi.mbo.MboValue;
import psdi.mbo.MboValueAdapter;
import psdi.util.MXException;

public class FldLzglwz extends MboValueAdapter
{
  public FldLzglwz(MboValue mbovalue)
  {
    super(mbovalue);
  }

  public void validate() throws MXException, RemoteException {
    super.validate();
  }

  public void action() throws MXException, RemoteException {
    super.action();
    Mbo mbo = getMboValue().getMbo();
    String attributeName = getMboValue().getAttributeName();
    if (attributeName.equalsIgnoreCase("LZGLWZ")) {
      String lzglwz = mbo.getString("LZGLWZ");
      if (lzglwz.equalsIgnoreCase("Y")) {
        mbo.setValue("LZJXWZ", "0", 2L);
      }
    }
    if (attributeName.equalsIgnoreCase("LZGLWZ1")) {
      String lzglwz1 = mbo.getString("LZGLWZ1");
      if (lzglwz1.equalsIgnoreCase("Y"))
        mbo.setValue("LZJXWZ1", "0", 2L);
    }
  }
}